package java8_5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Lunch {
    //两个if很容易都执行的情况
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("数数口袋里的钱:");
        double money=in.nextDouble();
        if(money>=100){
            System.out.println("KFC全家桶");
            money-=90;
        }else{
            System.out.println("去对面吃一份蛋炒饭");
            money-=15;
        }
//        if(money<100){
//            System.out.println("去对面吃一份蛋炒饭");
//            money-=15;
//        }
        System.out.println("剩下："+money+"元");
    }
}
